]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-texture-cache: Unref each texture when we destroy the async load data
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Oct 2011 21:37:28 +0000 (17:37 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Oct 2011 21:43:11 +0000 (17:43 -0400)
We ref the textures when we add them to the list, so we should unref
them when we destroy the list.

src/st/st-texture-cache.c

index 466f1ba78f955e9d7eef89641957286c971a14a7..2333cffe3aeb67bda371ca784766c0401d201d31 100644 (file)
@@ -348,7 +348,7 @@ texture_load_data_destroy (gpointer p)
     g_free (data->mimetype);
 
   if (data->textures)
-    g_slist_free (data->textures);
+    g_slist_free_full (data->textures, (GDestroyNotify) g_object_unref);
 }
 
 /**